import Cookies from 'js-cookie';

const Admin = 'Admin';
const TokenKey = 'Admin-Token';
/**
 * admin user
 */
export function getAdmin() {
  let token = Cookies.get(Admin)?JSON.parse(Cookies.get(Admin)):null;
  return token;
}

export function setAdmin(user) {
  return Cookies.set(Admin,user)
}

export function removeAdmin() {
  return Cookies.remove(Admin)
}


